﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace thinger.AutomaticStoreMotionModels
{
    public class OperationResult
    {
        public bool IsSuccess { get; set; }
        public string ErrorMsg { get; set; }

        public static OperationResult CreateSuccessResut()
        {
            return new OperationResult
            {
                IsSuccess = true,
                ErrorMsg = "OK"
            };
        }

        public static OperationResult CreateFailResut()
        {
            return new OperationResult
            {
                IsSuccess = false,
                ErrorMsg = "NG"
            };
        }

    }
}
